﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ThongKeBaoCao.aspx.cs" Inherits="PresentationLayer_ThongKeBaoCao" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

        .style28
        {
 
        }
                
   .GridPager a, .GridPager span
        {
            display: block;
            height: 15px;
            width: 15px;
            font-weight: bold;
            text-align: center;
            text-decoration: none;
        }
        .GridPager a
        {
            background-color: #f5f5f5;
            color: #969696;
            border: 1px solid #969696;
        }
        .GridPager span
        {
            background-color: #A1DCF2;
            color: #000;
            border: 1px solid #3AC0F2;
        }

        .style63
        {            width: 769px;
        }
        .style64
        {
            width: 104px;
        }

        .style65
        {
            width: 242px;
            top:auto;
        }

        .style66
        {
            width: 100%;
        }

        .style67
        {
            width: 242px;
            top: auto;
            height: 25px;
        }
        .style68
        {
            height: 25px;
        }
        .style69
        {
            width: 104px;
            height: 25px;
        }

        .style70
        {
            color: #FF6666;
        }

        </style>
    <%--<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.1.min.js" language="javascript"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            /*Code to copy the gridview header with style*/
            alert("Thong");
            var gridHeader = $('#<%=GridViewData.ClientID%>').clone(true);
            /*Code to remove first ror which is header row*/
            $(gridHeader).find("tr:gt(0)").remove();
            $('#<%=GridViewData.ClientID%> tr th').each(function (i) {
                /* Here Set Width of each th from gridview to new table th */
                $("th:nth-child(" + (i + 1) + ")", gridHeader).css('width', ($(this).width()).toString() + "px");
            });
            $("#controlHead").append(gridHeader);
            $('#controlHead').css('position', 'absolute');
            $('#controlHead').css('top', $('#<%=GridViewData.ClientID%>').offset().top);

        });
    </script>--%>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
            <table class="style28" align="center">
                <tr>
                    <td align="center" class="style70">
    
                        <strong style="text-align: center">THỐNG KÊ - BÁO CÁO</strong></td>
                </tr>
                <tr>
                    <td align="center">
   <table class="style63" border=0 align="center">
                            <tr>
                                <td class="style67">
    
                                    Lớp dữ liệu</td>
                                <td class="style68">
    
                        Trường thuộc lớp</td>
                                <td class="style69">
                                    </td>
                                <td class="style68">
    
                                    Trường cần xuất thông tin</td>
                            </tr>
                            <tr>
                                <td class="style65" valign="top">
                                    <asp:DropDownList ID="DListLop" runat="server" Height="22px" 
                            Width="242px" AutoPostBack="true" 
                            onselectedindexchanged="DListLop_SelectedIndexChanged">
                        </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:ListBox ID="ListBTruongLop" runat="server" Height="190px" Width="194px">
                        </asp:ListBox>
                                </td>
                                <td class="style64" align=center>
                                    &nbsp;
                                    <table class="style66" align="center">
                                        <tr>
                                            <td>
                                    <asp:Button ID="btnAdd" runat="server" BorderStyle="None"
                            onclick="btnAdd_Click" Height="20px" Width="38px" Text="&gt;" />
                                            </td>
                                            <td>
                        <asp:Button ID="btnRemove" runat="server" BorderStyle="None" 
                            onclick="btnRemove_Click" Height="20px" Width="38px" Text="&lt;"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                    <asp:Button ID="btnAddAll" runat="server" BorderStyle="None"  
                            onclick="btnAddAll_Click" Height="20px" Width="38px" Text="&gt;&gt;" />
                                            </td>
                                            <td>
                        <asp:Button ID="btnRemoveAll" runat="server" BorderStyle="None"  
                            onclick="btnRemoveAll_Click" Height="20px" Width="38px" Text="&lt;&lt;" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    <asp:ListBox ID="ListBTruongTK" runat="server" Height="190px" Width="194px">
                        </asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style65">
                                    &nbsp;</td>
                                <td>
    
                                    &nbsp;</td>
                                <td class="style64">
                                    &nbsp;</td>
                                <td>
    
                        <asp:Button ID="btnExcel" runat="server" onclick="btnExcel_Click" 
                            Text="Xuất ra excel" />

                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>
                <tr>
                    <td style="text-align: left">
    <div style ="height:100%; width:100%; overflow:auto;" >
                        <asp:GridView ID="GridViewData" runat="server" 
                            HeaderStyle-CssClass="FixedHeader" HeaderStyle-BackColor="YellowGreen" AlternatingRowStyle-BackColor="WhiteSmoke" 
                            OnPageIndexChanging="GridViewData_PageIndexChanging" 
                            EnableModelValidation="True" >
                   

                   
                </asp:GridView>
                </div>

                    </td>
                </tr>
            </table>

    </div>
    </form>
</body>
</html>
